/* this test runs 10 threads each running the dummy program
 * dummyTest which simulates random commands to the server
 */
#include <unistd.h>
#include <stdlib.h>
#include <pthread.h>

void *run_dummy(void *);

int main(){
	int i;
	pthread_t thread[10];
	int thread_rv;

	for (i = 0; i < 10; i++){
		thread_rv = pthread_create(&thread[i], NULL, run_dummy, NULL);
	}

	for (i = 0; i < 10; i++){
		pthread_join(thread[i], NULL);
	}
	return 1;
}

void *run_dummy(void *){
	system("./tester");
	pthread_exit(NULL);
}
